package cn.kgc.reflect;

/**
 * @author: mosin
 * @version: v1.0  2022/10/10
 */
public class Student {

    @Value(id = 30)
    private Integer id;
    @Value(stuName = "jack")
    public String stuName;
    public String stuNo;
    protected  Integer age;
    Double score;


    public Student(Integer id, String stuName) {
        this.id = id;
        this.stuName = stuName;
    }

    public Student() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }


    private void test01(){
        System.out.println("私有方法");
    }

    public String test01(String info){
        System.out.println(info);
        return  info;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuName='" + stuName + '\'' +
                '}';
    }
}
